
var crypto = require("crypto");

var hashes = crypto.getHashes();
console.log(hashes.join());
var cipers = crypto.getCiphers();
console.log(cipers.join());

console.log("md5:" + md5("123456"));

/**
 * 生成md5码
 * @param data
 * @returns {string}
 */
function md5(data){
    var md5 = crypto.createHash("md5");
    var hash = md5.update(data).digest("hex");
    return hash;
}


